/**
 *  Copyright 2011 Pavlov Dm.
 *  Licensed under the MIT License
 */
 
package org.motiv.tests.policy;

import org.motiv.core.Element;
import org.motiv.tests.objects.TestObject;
/**
 * A cache element factory class.
 * @author Pavlov Dm
 */

 public final class ElementFactory{
	
	/**
     * Constructor.
     */
    private ElementFactory() { }
	
	 /**
     * Create cache configuration object.
     */
    public static Element create(long iid,String name) {
		if(iid > 0){
			Element element = new Element(iid,new TestObject(iid,name));
			return element;
		}
		return null;
    }
}